/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取主页面列表数据
export const getList = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/category/search`, { params });

// 处理会员卡信息
export const excuteCardInfo = params => axios.post(`${SERVER.MEMBERS_CLUB}/basic/category/saveOrUpdate`, params);

// 删除记录
export const doRemove = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/category/deleteById`, { params });

// 获取委托书类别列表数据
export const getWtsList = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/category/getBillByMainId`, { params });

// 获取精品类别列表数据
export const getJpList = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/category/getQtqByMainId`, { params });
// 获取委托书类别信息
export const getWxList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/queryListForMember`, { params });

// 获取联盟关系
export const getRelation = params => axios.get(`${SERVER.MEMBERS_CLUB}/membersAlliance/getMembershipAlliance`, { params });

// 获取联盟关系前的接口
export const BeforeRelation = params => axios.get(`${SERVER.MEMBERS_CLUB}/membersAlliance/updateMembershipAlliance`, { params });

// 下发会员卡信息
export const getCardInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/category/downloadCategory`, { params });
